Items filtered by date: Monday, 07 December 2015

Friday, 08 December 2017 12:03

Payments Accepted

This package shows payment options, speciofically credit cards and debit cards. This uses icons from iconshock.

Payments Accepted

maestro 64 mastercard 64 paypal 64 solo 64 switch 64 visa 64 visa electron 64

HTML

<p><span style="color: #ec008b; font-size: 14pt;">Payments Accepted</span></p>
<p>
    <img src="/images/modules/908/maestro_64.png" alt="maestro 64" />
    <img src="/images/modules/908/mastercard_64.png" alt="mastercard 64" />
    <img src="/images/modules/908/paypal_64.png" alt="paypal 64" />
    <img src="/images/modules/908/solo_64.png" alt="solo 64" />
    <img src="/images/modules/908/switch_64.png" alt="switch 64" />
    <img src="/images/modules/908/visa_64.png" alt="visa 64" />
    <img src="/images/modules/908/visa_electron_64.png" alt="visa electron 64" />
</p>

 

Published in Packages
Friday, 08 December 2017 10:35

My Canon imageRUNNER C1028i Notes

Unless you know about this printer/copier it can be a bit tricky to setup and use.

imageRUNNER C1028i Support - Download Drivers, Software & Manuals

Factory Reset via service mode

Press the following keys in order to enter the service mode

  • Main menu key
  • 2 Key
  • 8 Key
  • Main menu key
  • now you are in service mode
  • Factory reset the copier
    • Use the following option to clear all settings/registration data except the counter (denominator, numerator). The #clear/all option does a normal system wipe.
    • #CLEAR/ALL

Some cannon printers require that you press the 2 and 8 key at the same time.

You must set the system admin user name and password before the sysmmanagement set option works.

Links

Admin login details

The default admin details are:

  • Username: 7654321
  • Password: 7654321

Password removal options

  • Go into service mode to clear the password. Enter Service mode>Copier>Function>Clear>PWD-CLR>OK - This might not work for this copier.

Links

 

Published in Printers

When you need to install XP there are things that makes it difficult like the fact it takes forever to download updates. The following instructions are the easiest way to install XP witout it taking forever.

  • Install XP SP3 or upgrade your XP to SP3
  • Install ie8 - You can get this from the windows download site (IE8-WindowsXP-x86-ENU.exe)
  • Install the latest 'Windows Update Agent' - Not sure this did anything. You can get this from the windows download site (WindowsUpdateAgent30-x86.exe)
  • Open a command prompt and run the following command to force Windows update to run without the need of ie8
    wuauclt /detectnow
  • wait an hour or so (10 minutes might be ok).
  • if this wants to install Update for windows KB898461, install it.
  • This process will not tell you it has finished so shutdown the PC when there is no HDD activity and the 127+ updates will start to install.

Links

Published in Windows XP

Windows 10 now supports adpatvice screen brightness if the hardware supports it. Sometimes this feature breaks and here are some of the fixes.

 

Published in Windows 10

Outlook 2016 will not start unless you run as administrator

What I have Tried and did not work

  • go to add/remove and run the repair option
  • sfc /scannow
  • create addiotion outlook profile - same thing happens pops up then dissapears. not difference in safemode (both windows and outlook)
  • completely remove the old profile? might be scanning the pst file and not liking it
  • disabled addons
  • uninstall office, remove the uneeded office folders in program files, also remove all other office patches and version
  • running as administrator and then disabling all addins makes no difference, still cannot load. I did not remove them. the ones in there all come with office 2016 anyway
  • right click send to mail recipient
    • brought up the office 2003 style selection box, is there still part of the old office installed.
    • looking in task manager this shows up as type = app, called: FIXMAPI 1,0 MAPI Repair Tool (32 bit) Choose profile
  • Outlook 2016 won't go beyond "Processing" Upon Launch - Microsoft Community - Page 5 - DPI Scaling

    TechMonkey1978 replied:

    Ok I thought I should post this to help those going mad with this issue.

    I have spent literally weeks going round and round with this issue for a client.

    Firstly, if staring outlook in safe mode ( START > RUN > "outlook /safe" ) works for you then great! Have a nice day.

    However if you are one of the poor buggers that is recreating profiles, only to have the thing break again a day later or a week later then "hopefully" I got you covered.

    So the issue is not in your mail profile or your add-ins, the issue a problem with Outlook and DPI scaling in Windows.

    For reference our client is using the latest build of Outlook 2016 on the latest update of Windows 7 Pro.

    What you need to do to fix it, set your DPI scaling in Display Settings to 100%

    http://www.sevenforums.com/tutorials/443-dpi-display-size-settings-change.html <-- has instructions for Win 7 and 8, but it similar process in Win 10

    You will need to log out and back in, now try open Outlook? All fixed? - You're welcome.

    need to give credit to some guy in one of these many Outlook threads, as he mentioned something about this, however I cant find the post now that I am looking for it.

    In the target PC this was set to normal

  • Microsoft Office Configuration Analyzer Tool 2.2 (OffCat)
  • Check File permissions - This did not work but I might of not done this step correctly.
  • Outlook 2016 might get installed in the following location but this is normal
    C:\Program Files (x86)\Microsoft Office\root
    Even thought you would expect
    C:\Program Files (x86)\Microsoft Office\Office16

Workaround

I never got this issue fixed and I advised the user I would have to rebuild the whole PC which was not practical so I did the following hack. Not Ideal but it sort of works.

  • I enabled "Run as Administrator" in the shortcut.

Links

Published in Outlook
Thursday, 07 December 2017 17:51

Colourize a black and white image

This technique can make some eye catching images foy our website. I will let the videos explain themeselves along with my notes.

How To Colorize Black and White Photo in Paint.NET (Windows) - YouTube

  • set background/bottom layer as a black and white image
  • create a new layer (should go above), call it colourize
  • edit the colourize layer properties, change 'Blending Mode' to overlay (or your preference)
  • make sure the colourize layer is selected
  • draw/fill (with paint brush) the area that you want to colourize
  • ? - edit the colourize layer properties, change opacity to 150

Paint.Net - How to add color to ONE item in a black and white image - YouTube

  • set background/bottom layer as a black and white image
  • create a new layer (should go above), call it colourize
  • make sure the colourize layer is selected
  • draw/fill (with paint brush) the area that you want to colourize
  • edit the colourize layer properties: Blending Mode' to overlay (or your preference), change opacity to 150 (or your preference)
  • Goto Effects->Gaussian Blur (25 is a good option); this removes jagged edges

NB: if you setup the new layer befor doing the drawing/filling you can actually see the effect happen in real time

My Method

  • add black and white image as bottom layer
  • add a new layer called colourize
  • set colourise layer properties: Blend Mode --> Overlay, Opacity --> 200
  • select colourise layer
  • set your primary colour to that you want to hightlight in
  • using the draw tools, pencil/paint brush/magic lasso etc.. colour in the area

Cut out area method - this is a litte more tricky

  • Colourize Layer
  • duplicate the bottom layer
  • cut out the objects you want to keep so only they are the only things left
  • then fill them in with your colour
  • convert this image into an overlay layer
  • ? - Background Layer / Black and White image
Published in Applications

This issue plagued me for ages.

When i printed from Firefox either directly or by creating a PDF (via cutePDF), the output was scaled to about 25% of normal size making the printouts unusable.

The percetage reduction is just a guidline as there can be some variation, but the outcome is always a smaller version of what you want.

Solution

In Firefox page setup:

  • remove margins
  • remove shrink to fit + reset scale to 100%
  • change paper type under printer options: Letter -> A4, and set to automatically select
Published in Firefox

No need to re-flash the rom. You can change it from 'Home screen settings'.

  • Find a blank area on the home page and then press and hold. This will bring up a menu.
  • Select 'Home screen settings'.
  • Select 'Home screen layout'
  • Select one of the following:
    • Home and Apps screens
    • Home screen only

 

Published in Android
Thursday, 07 December 2017 17:19

cPanel Security

This article will outline some basic steps to increase the security of cPanel and reduce SPAM but only as an end user. This is not targetted at people who have access to the server, but they can use this information.

To Reduce SPAM

Enable the following services:

  • DMARC
  • SPF
  • DKIM
  • Forced SMTP Authentication - I believe this can help with delivery.
  • Forced SSL/TLS SMTP - Disable all plain text email services.
  • SpamAssassin - Use the following settings
    • score BAYES_95 - 4.5
    • score BAYES_99 - 6.0
    • score BAYES_999 - 7.0
    • score SPF_FAIL - 10.0
    • score SPF_SOFTFAIL - 10.0
    • score URIBL_BLACK - 6.0
    • score URIBL_DBL_SPAM - 6.0
    • score URIBL_JP_SURBL - 4.0
    • score URIBL_WS_SURBL - 4.0

Services

Enable the following services:

  • DNSSEC
  • Anti-Virus
    • ClamAV
    • Ummunify

Things to do

  • Go through the cPanel Security Center
  • Run Health Check
  • Run Security Advisor
  • Check for any account over-quota, this can be a sign of a virus.
  • Only use secure DNS providers such as 9.9.9.9 and avoid using 8.8.8.8 etc..

 

Published in cPanel
Tuesday, 28 November 2017 11:00

Run OpenWrt as a Virtualbox virtual machine

These are my instructions to install LEDE on a Virtualbox virtual machine so i can play around with various setups and add-ons without breaking my router. I am a windows user, so these instructions are windows based but a lot should be the same. Through this guide I will use 'VB' which is instead of typing virtualbox virtual machine lots of times.

Download and install VirtualBox before anything else.


These instructions are a companion to LEDE Project: Run LEDE as a Virtualbox virtual machine which has some errors in it.


Which Image File

This is can be confusing so I will outline what the different types are below. The image files are also specific to certain chips or technology, so in this case these images are for x86/x64 archeitectures. The Stable Releases are also sorted by their release number, so make aure you always get teh latest version.

  • Stable Release - These are the current stable production releases and also include LuCI (the GUI for LEDE)
  • Snapshots - These are the bleeding edge release and are for development and testing. They do NOT contain LuCI.
  • squashfs
    • Images with this in title store all the primary system files in a compressed read only partition. Now I am not 100% how this works but the 2 scenarios but there are
      • All changes to the system files are stored on the eread/write partition and override those on the read only partition
      • The system files on first boot are copied into the read/write partion and it is those files that are used.
    • These images allow the use of a factory reset because they can wipe the read/write partition and then restore data from the read only partition
  • ext4 - Images with this in the title are = not sure yet, perhaps there is just 1 single ext4 partition

The 2 files to choose from will have filenames similiar to these which are from the 17.01.4 stable release folder.

I have chosen to use lede-17.01.4-x86-64-combined-ext4.img.gz because I can easily expand the ext4 storage partition.

Notes

Prepare the virtual hard drive Image file (lede-17.01.4-combined-ext4.img)

  • This is the preferred image to use for Full systems, PCs and Virtual Machines.
  • The ext4 partition can be easily extended for those who need more storage.
  • You will also notice that this image file is full size when you extract it.

Make the VirtualBox VDI file

Run the following command in the directory you have your LEDE image file.

"C:\Program Files\VirtualBox\VBoxManage" convertfromraw --format VDI lede-17.01.4-combined-ext4.img lede-17.01.4-combined-ext4.vdi

Now skip to the section Make the Virtualbox Virtual Machine.

Prepare the virtual hard drive Image file (lede-17.01.4-combined-squashfs.img)

  • This image is designed for embedded systems or systems with a small amount of storage.
  • You can usually image this directly to a real machine but image file will not work out of the box because it needs to be prepared to use in a virtual machine.
  • I have not been able to resize the storage partion for this image type and from what I read you are suppose to do this when you compile the image file. I am sure there is a work aroun but i cannot find it.

Make the VirtualBox VDI file

Run the following command in the directory you have your LEDE image file.

"C:\Program Files\VirtualBox\VBoxManage" convertfromraw --format VDI lede-17.01.4-x86-64-combined-squashfs.img lede-17.01.4-x86-64-combined-squashfs.vdi

Converting the img file to a VDI file fails with an error

When you try and convert an untouched  lede-17.01.4-x86-64-combined-squashfs.img to a virtualbox VDI file using VboxManage you will always get an error similiar to the one below:

D:\>"C:\Program Files\VirtualBox\VBoxManage" convertfromraw --format VDI lede-17.01.4-x86-64-combined-squashfs.img lede-17.01.4-x86-64-combined-squashfs.vdi
Converting from raw image file="lede-17.01.4-x86-64-combined-squashfs.img" to file="lede-17.01.4-x86-64-combined-squashfs.vdi"...
Creating dynamic image with size 19852146 bytes (19MB)...
VBoxManage.exe: error: VD: The given disk size 19852146 is not aligned on a sector boundary (512 bytes)
VBoxManage.exe: error: Error code VERR_VD_INVALID_SIZE at F:\tinderbox\win-5.1\src\VBox\Storage\VD.cpp(7002) in function int __cdecl VDCreateBase(struct VBOXHDD *,const char *,const char *,unsigned __int64,unsigned int,const char *,const struct VDGEOMETRY *,const struct VDGEOMETRY *,const union RTUUID *,unsigned int,struct VDINTERFACE *,struct VDINTERFACE *)
VBoxManage.exe: error: Cannot create the disk image "lede-17.01.4-x86-64-combined-squashfs.vdi": VERR_VD_INVALID_SIZE

D:\>

Explanation

This simple to explain. The image file is only 19MB in size but represents a drive that is nearly 300mb in size (16mb + 256mb). VboxManage parses the img file and sees a 300mb file system so it expects a file that is 300mb long, but because the file is not 300mb long as expected VboxMan returns an error. This is basically an unexpected end of file error. VboxMan actually interprets the files system in the file which is stored at the beginning so this error is expected.

NB: the img file does not need to be 300mb in normal circumstances because if you image the file 'as-is' onto a large enough drive then you would not have this issue because the OS would just see the extra space dues tot he partition table being correct. This keeps the file size to the absolute minimum. We only change the image because we want to create a virtual drive from the img and this process like validate partions and files systems so it can convert them to its own format.

Research / Examples

Look at these 2 examples where I have padded the files with 100mb and 300mb respectively, converted them to a VDI image, loaded them in the LEDE virtual machine and then booted with Gparted to see what was going on with the disks.

The 100mb example has an error that come up before you even get the disk map.

100m partition error

This error actually appears twice, I am guessing that is because there are 2 partitions.

100mb disk map

Now as you know is not possible to fit the sda2 256mb partition onto a hard disk that is only 100mb in size. . The 100mb drive is likely to be corrupted or cause many issues.

So I now move on to where I padded the image file with 300mb.

300mb disk map

You can see the whole partition sda2 is within the drive boundries so will be healthy. VboxManage considers the whole file size when creating a VDI file. Both the 100mb and the 300mb VDI files were 9,216kb exactly so there must only be a slight difference in a setting controlling the virtual hard drive size.

NB: I do not know why the file system is unknown.

Padding the file

Now we know what the issue is we can fix it. We do this by making the file 300mb in size using the linux command dd. This allows us to extend the length of the file without affecting the contents that are already there.

You need a Linux system to be able to run the following commands. If you are on windows there is section below briefly telling you how to setup an Ubuntu virtual machine.

This command is wrong (from LEDE Project: Run LEDE as a Virtualbox virtual machine )

dd if=lede-17.01.4-x86-64-combined-squashfs.img of=lede.img bs=128000 conv=sync
  • bs=128000 - this sets the block size that dd will work with and this is to small to wrk with a 300mb file so the secondary partion will get truncate but the primary system partition is still thre. This is why people will get a VB machine to boot but have no spare disk space to work with.
  • The outputed file is xxxxxxxxMB in size.

Use this command

dd if=lede-17.01.4-x86-64-combined-squashfs.img of=padded-lede-17.01.4-x86-64-combined-squashfs.img bs=300M conv=sync
  • This command makes an image that is 300mb which is more than enough to hold the whole file system.
  • The names are slightly different but that is just to make managing the files easier.
  • The outputed file is 300MB in size.

We now have a file that will convert

Run the following command in the directory you have your padded img file to create your virtual hard drive VDI file.

"C:\Program Files\VirtualBox\VBoxManage" convertfromraw --format VDI padded-lede-17.01.4-x86-64-combined-squashfs.img lede-17.01.4-x86-64-combined-squashfs.vdi

Notes

Create an Ubuntu Virtual Machine

This is a workaround for windows users to be able to use the dd command. There must be a windows equavalent but I don't know of one at the minute so here are my instructions to setup an Ubuntu virtual machine.

I used an Ubuntu 17.10 Artful (Final) Virtualbo prebuilt image from http://www.osboxes.org/ubuntu/

Credentials

  • Username: osboxes
  • Password:org

Create the VB Machine

  • Extract the VDI file to your Vitual Machine images folder
  • Create a VB machine in expert mode using the settings below
    • Name: Ubuntu 64-bit
    • Type: Linux
    • Version: Ubuntun (64-bit)
    • RAM: 2048mb
    • Use an existing virtual hard disk file: point it to the VDI file you just extracted
    • Click create
    • Now run the machine

Configure the VB

Ubuntu is now running but we need to get the image files into the installation so there are a few settings that need to be configured to amke this an easy process.

  • Open Settings
    • Top right, click the drop down arrow
    • Click on the screwdriver and spanner
    • All settings can be managed here
  • Set regional settings (optional)
    • The keyboards is set to American , so needs changing to your locale.
    • Check Time region aswell
  • Update ubuntu
    • this is required to be able to enable file sharing (for some reason, see 12.10 - Package 'samba' is virtual - Error when installing Samba - Ask Ubuntu) other wise you will get errors about missing services (sharing service is not install / package 'samba' is virtual / Could not find package 'libpam-smbpass' / Sharing service installation failed)
    • verify you are connectedd to the internet
    • Open up a terminal console and run sudo apt-get update
    • Install any updates you are prompted for
    • Reboot
  • Enable file sharing
    • Make sure the Ethernet is enabled in ubuntu (should be)
    • Follow the instructions from Share Folders On Local Network Between Ubuntu And Windows
      • share out desktop folder with ‘Allow others to create and delete files in this folder’ and ‘Guest access’ enabled
      • allow any permissions that you are prompted for

Pad the file

You can now access your Ubuntu install by using \\osboxes

  • Start the Ubuntu machine (if not already)
  • on your windows PC run \\osboxes and you should now see the Ubuntu desktop
  • copy the lede-17.01.4-x86-64-combined-squashfs.img to the Ubuntu desktop
  • Open up a terminal console and type the following commands
  • navigate to theDesktop folder by type the command cd Desktop
  • now run the dd command shown above and this will pad the file as required.
  • on your windows PC open \\osboxes and copy of the padded file
  • shutdown your Ubuntu machine as it is not needed now. Dont delete the machine you might need a linux machine in the future.
  • Carry on with the next section below.

Notes

Make the Virtualbox Virtual Machine

Follow the instructions below

  • Open the page LEDE Project: Run LEDE as a Virtualbox virtual machine
  • Goto VM Setup in VirtualBox section
  • Follow the VM Creation instructions
    • I set my RAM to be 512MB (optional)
  • Follow the VM setup/Virtualbox settings instructions
    • ignore that fist paragraph of text
    • the first network section deals with general Virtualbox network preferences and should all be setup.
    • You might see VirtualBox Host-Only Network or VirtualBox Host-Only Network #2 and these can be used instead of vboxnet0 as they are just different names for the same thing.

Make the data partition larger (squashfs) (research only/not working)

I never got this to work (resizing sda2) but I did a lot of looking on the internet and here are the links I collected.

Extroot

Make the data partition larger (ext4 only) (optional)

The virtual hard disk is split into 2 partitions, 16mb system and a 256mb data partition. For most people this should be enough however if you want more space follow these instructions which are best done before you start playing with your LEDE install bu you can do this later if you want.

Increase the capacity of the virtual hard drive

  • Unmount the VDI file from your virtual machine if attached
  • Backup the VDI file (optional)
  • Run the following command in the same folder as the image file to resize the virtual hard drive to 10GB
  • "C:\Program Files\VirtualBox\VBoxManage" modifymedium lede-17.01.4-combined-ext4.vdi --resize 10000

NB: For compatibility with earlier versions of VirtualBox, the "modifyvdi" and "modifyhd" commands are also supported and mapped internally to the "modifymedium" command. see Chapter 8. VBoxManage

Increase the partition size

Just by increasing the size of the hard drive will not increase the size of the Partitions so now we have to make the partition(s) bigger

  • remount the new larger VDI file to your LEDE virtual machine
  • Download Gparted
  • Load the ISO into the DVD-ROM drive of your virtual machine
  • Power on the  LEDE Virtual machine and boot of the DVD Drive
  • Gparted will now load after you have selected the appropriate settings
  • Use Gparted to expand the required partition. (Dont forget to apply the changes)
  • Power of the virtual machine and remove the Gparted ISO
  • Power on and boot LEDE

Your sda2 partition will not have 10GB of free space.

Notes

Notes on partitions, their layouts and the process of making more space available to LEDE in a virtual machine.

Configure LEDE

Quick Setup

LEDE will now boot but we will not be able to access it because the IP address is wrong. To fix that:

  • Start the new Virtual machine
  • Goto the virtual machine as we will be working in it now
  • Press enter when br-lan message is display and LEDE console will appear
  • Type the following commands in, each followed by pressing enter
    • uci set network.lan.ipaddr='192.168.56.2'
    • uci commit
    • reboot

Because we used the stable release when LEDE is booted up you can access LuCI via you browser by using the address http://192.168.56.2/ .This means you can do a lot of editing in the GUI rather than the command line. If you used a snapshot you will need follow the Full Setup shown below and install LuCI manually.

Full Setup

There are many more settings that 'might' need to be done but I have not got that far yet.

You are all done now, enjoy!!!


Misc

These are some other things that do not fit into the guide above but might be useful for some people.

Upgrading

I do not know how to do this. I am guessing you just update the root/system/sda1 partition with either of these packages as appropriate:

I/O Errors

If you get I/O errors when using the uci command it is probably caused by lack of free space on the file system. Instructions below. Using VI will not fix these errors but will let you change the IP address in /etc/config/network so you can access LuCI for easier diagnosis.

Editing with VI editor

Just incase you cannot make any changes with the uci commands then here is a crash course on VI editor

  • Insert = starts editing
  • Escape = takes you to the VI command line
    • :w = writes the changes
    • :q = quits VI editor

Notes

Moving a VDI image

You really should disconnect a VDI image from Virtualbox via the 'Virtual Media Manger' before moving the VDI file but if you dont here is the quick way of fixing that issue.

  • Goto the 'Virtual Media Manager'
  • Release teh affect VDI image
  • Delete the VDI image, but keep the file
  • Goto the Virtual machine
  • re-add the VDI while it is in it's new location

Notes


Questions

Published in DSL / Broadband
Page 15 of 96